package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Accessors(chain = true)
@Data
public class BrandAddNewParam implements Serializable {
    @NotNull(message = "新增品牌失败,必须提交品牌名称")
    @ApiModelProperty(value = "品牌名称",required = true,example = "汪恒贤的品牌")
    private String name;

    @NotNull(message = "新增品牌失败,必须提交品牌简介")
    @ApiModelProperty(value = "品牌简介",required = true,example = "汪恒贤的品牌的简介")
    private String pinyin;

    @NotNull(message = "品牌序号不能为空")
    @Range(max = 99, message = "排序序号值必须0~99之间")
    private Integer sort;

    @Range(max = 1, message = "排序序号值必须0~1之间")
    private Integer enable;
    private String logo;
    private String description;
    private String keywords;
}
